<?php
	//require_once __DIR__."/../Models/comments.php";
	
	use Symfony\Component\HttpFoundation\Request;
	use Symfony\Component\HttpFoundation\Response;

	//$comments_model = new Models\Comments($app);
	$comments_model = 'new Models\Comments($app)';
	$comments = $app['controllers_factory'];


	$comments->get('/', function() use ($app, $comments_model) {
		return "comments";
	});

	$comments->get('/{name}', function($name) use ($app, $comments_model) {
		return "comments";
	});

	return $comments; 
?>